<?php
/**
 * File
 */
header('content-type:text/html;charset=utf8');
require_once 'config.php';

$kh = new KhachHang();
$page = new Template(TEMPLATE_DIR . 'khachhang.html');
foreach ($kh->select('diachikh like \'Hậu Giang\'') as $row) {
    $item = new Template(TEMPLATE_DIR . 'khachhang-item.html');
    $item->setArray($row);

    $page['khachhang-item'] .= $item->render();
}


echo $page->render();